package com.yyhu.auto;

import java.util.HashMap;
import java.util.List;

public class TmpUserIdHelp {
    String getTmpUser(List<String> sunmiUser) {
        HashMap<String, String> allUser = new HashMap();
        allUser.put("SM2193", "7");
        allUser.put("SM0421", "8");
        allUser.put("SM2218", "10");
        allUser.put("SM0974", "12");
        allUser.put("SM1129", "13");
        allUser.put("SM1300", "21");
        allUser.put("SM2724", "29");
        allUser.put("SM0539", "38");
        allUser.put("SM2856", "41");
        allUser.put("SM0726", "46");
        allUser.put("SM1600", "50");
        allUser.put("SM3118", "51");
        allUser.put("SM2399", "58");
        allUser.put("SM1741", "83");
        allUser.put("SM0585", "116");
        allUser.put("SM3689", "246");
        allUser.put("SM3710", "262");
        allUser.put("SM3719", "263");
        allUser.put("SM3775", "265");
        allUser.put("SM3781", "271");
        allUser.put("SM3784", "273");
        allUser.put("SM3822", "282");
        allUser.put("SM3818", "294");
        allUser.put("SM3919", "304");
        allUser.put("SM4098", "365");
        allUser.put("SM4145", "368");
        allUser.put("SM4149", "369");
        allUser.put("SM4196", "385");
        allUser.put("SM4198", "388");
        allUser.put("SM4231", "395");
        allUser.put("SM4234", "401");
        StringBuilder userIdStr = new StringBuilder();
        for (String id : sunmiUser) {
            if (allUser.containsKey(id)) {
                userIdStr.append(allUser.get(id) + ",");
            }
        }
        if (userIdStr.toString().endsWith(",")) {
            String str = userIdStr.toString();
            return str.substring(0, str.length() - 1);
        } else {
            return userIdStr.toString();
        }
    }
}
